package com.star.service.impl;

import com.star.dao.UserMapper;
import com.star.pojo.User;
import com.star.service.UserService;
import com.star.util.MD5Utils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * com.star.service
 *
 * @Description: 用户接实现类
 * @Date: 2020-08-05 18:29
 * @Author: LENSTAR
 * @URL: http://123.57.161.114:9000/
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User checkUser(String username, String password) {
        User user = userMapper.checkUser(username, MD5Utils.code(password));
        return user;
    }
}
